package com.sheng.project.common;

import com.sheng.project.component.Repositories;

/**
 * @author by ls
 * @date 2023/9/5
 */
public interface BasicObject {

    default <Repository extends BasicRepository<?>> Repository repository() {
        return (Repository) Repositories.getByDO(this.getClass());
    }
}
